#generates a matrix of mean values in classes
#        attr1   attr2   attr3   attr4 ...
#class1
#class2
#class3
#class4
function M = getMeans(data)
    M=[];
    for i=1:4
        subset=data(data(:,1)==i,2:end);
        M=[M;mean(subset)];
    end;
end


